package org.fengdi.store.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.fengdi.store.entity.Storage;

@Mapper
public interface StorageMapper extends BaseMapper<Storage> {

    @Select("SELECT * From storage where commodity_code = #{code}")
    Storage findByCommodityCode(String code); // 根据商品 id 获取实例
}
